<template>
  <view class="p-4">
    <web-view src="https://samp.zidd.ac.cn/"></web-view>
  </view>
</template>

<script>
	import * as articleApi from '@/interface/junchuang/article.js'
	import NavHeader from '@/components/nav_header.vue'
	export default {
		components: {
			NavHeader
		},
		data() {
			const v = this
			return {
				id: '',
				code: '',
				contentObj: {
					title: '',
          frameUrl: '',
					content: '',
					publishTime: '',
					summary: ''
				},
				titleObj: {
          device_system: '找设备',
				}
			}
		},
		onLoad(e) {
			if (e.id) this.id = e.id
			if (e.code) this.code = e.code
		},
		onShow() {
      this.$util.openShare();
			const v = this
			articleApi.getArticleDetail({
				articleId: v.id,
				columnCode: v.code
			}).then(res=>{
				if (res.success) {
					Object.assign(v.contentObj, res.data)
				}
			})
		},
		methods: {
		}
	}
</script>

<style>

</style>
